package com.itheima.service.Impl;

import com.itheima.dao.TestDao;
import com.itheima.domain.Student;
import com.itheima.service.TestService;

import java.util.List;

public class TestServiceImpl implements TestService {
    private TestDao testDao;

    public void setTestDao(TestDao testDao) {
        this.testDao = testDao;
    }

    public void save(Student student) {
        testDao.save(student);
    }

    public void delete(Integer id) {
        testDao.delete(id);
    }

    public void update(Student student) {

    }

    public List<Student> findAll() {
        return testDao.findAll();
    }

    public Student findById(Integer id) {
        return null;
    }
}
